package org.project.choujiang.mapper;

import org.project.choujiang.pojo.domain.Good;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface GoodRepository  extends MongoRepository<Good,String> {
    List<Good> findAllByResourceIdAndUserId(String resourceId, String userId);

    Integer removeAllByResourceIdAndUserId(String resourceId, String userId);
}
